package cn.wolfcode.service;


import cn.wolfcode.domain.Employee;
import cn.wolfcode.query.PageResult;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * Created by Administrator on 2020/5/6.
 */
public interface IEmployeeService {
    Employee login(String username, String password);

    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listAll();

    void update(Employee employee, Long[] ids);

    PageInfo<Employee> query(QueryObject qo);

    void updatePwd(String name, String password);

    void batchDelete(Long[] ids);

    Employee selectByName(String name);

    Workbook exportXls();

    void importXls(MultipartFile file) throws IOException;

    //根据角色编码查询员工
    List<Employee> selectByRoleSn(String... sns);
}
